package com.ele.pojo;

public class Food {
	private Integer id;
	private Integer shop_id;
	private String foodName;
	private Integer foodPrice;
	private String foodDesc;
	private Integer foodStatus;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getShop_id() {
		return shop_id;
	}
	public void setShop_id(Integer shop_id) {
		this.shop_id = shop_id;
	}
	public String getFoodName() {
		return foodName;
	}
	public void setFoodName(String foodName) {
		this.foodName = foodName;
	}
	public Integer getFoodPrice() {
		return foodPrice;
	}
	public void setFoodPrice(Integer foodPrice) {
		this.foodPrice = foodPrice;
	}
	public String getFoodDesc() {
		return foodDesc;
	}
	public void setFoodDesc(String foodDesc) {
		this.foodDesc = foodDesc;
	}
	public Integer getFoodStatus() {
		return foodStatus;
	}
	public void setFoodStatus(Integer foodStatus) {
		this.foodStatus = foodStatus;
	}
	
	private String status() {
		if (foodStatus == 0) {
			return "售罄";
		}else if (foodStatus == 1) {
			return "在售";
		}else {
			return "下架";
		}
	}
	@Override
	public String toString() {
		return "菜品编号：" + id + "\n店铺编号：" + shop_id + "\n菜品名：" + foodName + "\n菜品价格：" + foodPrice
				+ "\n菜品描述：" + foodDesc + "\n菜品状态：" + status();
	}
	
}
